package com.yzkj.cpjxc.business.service;

import com.yzkj.cpjxc.business.framework.common.BusinessMap;
import com.yzkj.cpjxc.business.framework.common.Pager;
import com.yzkj.cpjxc.business.domain.Notification;
import com.yzkj.cpjxc.business.domain.NotificationQueryVo;

/**
 * 通知管理服务
 */
public interface NotificationService {

	/**
	 * @description: Notification
	 * @modifier:
	 * @modifiedDate:
	 * @param pager
	 * @param notification
	 * @return
	 * @throws Exception
	 */
	public Pager<Notification> search(Pager<Notification> pager, NotificationQueryVo notification) throws Exception;

	/**
	 * @description: 新增公告
	 * @modifier:
	 * @modifiedDate:
	 * @param notification
	 * @return
	 * @throws Exception
	 */
	public BusinessMap create(Notification notification) throws Exception;

	/**
	 * @description: 判断是否存在
	 * @modifier:
	 * @modifiedDate:
	 * @param otification
	 * @return
	 * @throws Exception
	 */
	public boolean isExists(Notification otification) throws Exception;

	/**
	 * @description: 根据ID获取
	 * @modifier:
	 * @modifiedDate:
	 * @param uuid
	 * @return
	 * @throws Exception
	 */
	public Notification getById(String uuid) throws Exception;

	/**
	 * @description: 通知公告编辑
	 * @modifier:
	 * @modifiedDate:
	 * @param notification
	 * @return
	 * @throws Exception
	 */
	public BusinessMap edit(Notification notification) throws Exception;

	/**
	 * 根据ID删除(文件信息管理)
	 * @modifier:
	 * @modifiedDate:
	 * @param uuid
	 * @return
	 * @throws Exception
	 */
	public boolean falseDelete(String uuid) throws Exception;

}
